﻿@model XSTDZ.ERP.Application.DataContracts.ProductTypeDto

@{
    ViewBag.Title = " - 更新产品类别";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
}

<h2>更新产品类别</h2>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

     @Html.HiddenFor(model => model.ParentID)
    @Html.HiddenFor(model => model.Level)
     @Html.HiddenFor(model => model.ID)
        <div class="editor-label">
            @Html.LabelFor(model => model.TypeName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.TypeName, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.TypeName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TypeCode)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.TypeCode, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.TypeCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TypeOrder)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.TypeOrder, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.TypeOrder)
        </div>

      

      @*  <div class="editor-label">
            @Html.LabelFor(model => model.IsLeaf)
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(model => model.IsLeaf)
            @Html.ValidationMessageFor(model => model.IsLeaf)
        </div>*@

       @* <div class="editor-label">
            @Html.LabelFor(model => model.Deleted)
        </div>
        <div class="editor-field">
            <input type="checkbox"  name="Deleted" id="Deleted" />
        </div>*@

        <div class="editor-label">
            @Html.LabelFor(model => model.Remarks)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Remarks, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.Remarks)
        </div>


          <p class="divBtn">
           <input type="hidden" id="hidHttpRefeParent" name="hidHttpRefeParent" value="tree" />
            <input type="hidden" id="hidHttpPostState" name="hidHttpPostState" value="@ViewBag.PostState" />
            <input type="submit" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnSave"  class="BtnSubmit" />
            <input type="button" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnClose" id="btnFromClose" name="btnFromClose" class="BtnClose" />
        </p>
}
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>